﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ICacheStorage.cs" company="">
//   
// </copyright>
// <summary>
//   The CacheStorage interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Common.Cache.CacheStorage
{
    /// <summary>
    /// The CacheStorage interface.
    /// </summary>
    public interface ICacheStorage
    {
        /// <summary>
        /// The remove.
        /// </summary>
        /// <param name="key">
        /// The key.
        /// </param>
        void Remove(string key);

        /// <summary>
        /// The store.
        /// </summary>
        /// <param name="key">
        /// The key.
        /// </param>
        /// <param name="data">
        /// The data.
        /// </param>
        void Store(string key, object data);

        /// <summary>
        /// The retrieve.
        /// </summary>
        /// <param name="storageKey">
        /// The storage key.
        /// </param>
        /// <typeparam name="T">
        /// </typeparam>
        /// <returns>
        /// The <see cref="T"/>.
        /// </returns>
        T Retrieve<T>(string storageKey);
    }
}